package com.dyna.demo.device.domain.entity;

import com.dyna.constants.DateFatter;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@ApiModel("设备信息")
@Data
public class DeviceInfo {

    @ApiModelProperty("编号")
    private String code;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty(value = "设备描述")
    private String deviceDesc;

    @ApiModelProperty(value = "设备状态")
    private Integer deviceStatus;

    @ApiModelProperty(value = "设备类型")
    private Integer deviceType;

    @ApiModelProperty(value = "设备经度")
    private BigDecimal longitude;

    @ApiModelProperty(value = "设备纬度")
    private BigDecimal latitude;

    @ApiModelProperty(value = "设备出厂时间")
    @JsonFormat(pattern = DateFatter.YYYY_MM_DD_HH_MM_SS)
    private LocalDateTime factoryTime;

}
